package com.example.project1;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

public class cuijianActivity extends AppCompatActivity {
    //好友名字
    private TextView song1;
    //好友信息
    private TextView song2;
    //好友照片
    private TextView song3;
    private TextView song4;
    private ImageView cuijian_pic;
    private ImageView music1;
    private ImageView music2;
    private ImageView music3;
    private ImageView music4;

    //返回上个页面按钮
    private Button btn_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.cuijian);
        init();
        setListeners();
    }

    public void init() {
        song1 = (TextView) findViewById(R.id.song1);
        song2 = (TextView) findViewById(R.id.song2);
        song3 = (TextView) findViewById(R.id.song3);
        song4 = (TextView) findViewById(R.id.song4);
        cuijian_pic = (ImageView) findViewById(R.id.cuijian_pic);
        music1 = (ImageView) findViewById(R.id.music1);
        music2 = (ImageView) findViewById(R.id.music2);
        music3 = (ImageView) findViewById(R.id.music3);
        music4 = (ImageView) findViewById(R.id.music4);
        btn_back = (Button) findViewById(R.id.btn_back);
    }

    private void setListeners() {
        btn_back.setOnClickListener(backMain);
    }

    private Button.OnClickListener backMain = new Button.OnClickListener() {
        @Override
        public void onClick(View arg0) {
            cuijianActivity.this.finish();
        }
    };

}